package com.orange.common.validation.annotation;

import com.orange.common.validation.annotation.impl.StrictEmailValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 邮箱校验
 *
 * @Author YWF
 * @Date 2025/5/9 21:31
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = StrictEmailValidator.class)
public @interface StrictEmail {
    String message() default "请输入有效的业务ID";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
